﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addRecruitment.aspx.cs" Inherits="Admin_addRecruitment" %>
<%@ Register Src="adminfoot.ascx" TagName="adminfoot" TagPrefix="uc1" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" href="imgs/admin.css" type="text/css" media="all" />
    <script type="text/javascript" src="../DotNet_net/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../DotNet_net/js/jquery.form.js"></script>
</head>
<body onload='$("#loading").hide()'>
<form name="addform" id="addformAjax"  method="post" runat="server">
    <div class="container" id="cpcontainer">   
    <div id="loading" style="display:block">   
    <div class="loading-indicator">   
        页面正在加载中...   
    </div>   
</div> 
   <table class="tb">
        <tr class="thead" ><td colspan="4" style="height: 25px">
            招聘添加\编辑</td>
        </tr>
        <tr>
            <td style="height: 31px; width: 136px;">
                职位名称</td>
            <td style="width: 1036px">
                <input id="jobClass" name="jobClass" type="text" runat="server" /></td>
            <td colspan="2" style="height: 31px">
                &nbsp;
                &nbsp;&nbsp;</td>
        </tr>
       <tr>
           <td colspan="4" align="left">
               <table bgcolor="#a6a79d" border="0" cellpadding="0" cellspacing="0" width="100%">
                   <tr class="thead">
                       <td style="height: 25px; width: 131px;">
                           职位类型：</td>
                       <td width="22%" style="height: 25px">
                           <input id="jobNeed" name="jobNeed" style="width:90%" type="text" runat="server" /></td>
                       <td width="30%" style="height: 25px" align="center">
                           </td>
                       <td style="height: 25px; width: 250px;"></td>
                   </tr>
                   <tr>
                       <td style="width: 131px">
                           招聘人数：</td>
                       <td><input id="jobNum" style="width:90%" type="text" name="jobNum" runat="server" /></td>
                       <td align="center">
                           招聘部门：</td>
                       <td style="width: 250px"><input id="jobBuMen" name="jobBuMen" style="width:90%" type="text" runat="server" />&nbsp;</td>
                   </tr>
                   <tr class="thead">
                       <td style="height: 25px; width: 131px;">
                           性别要求：</td>
                       <td style="height: 25px">
                           <select id="job_sex" name="job_sex" runat="server">
                               <option selected="selected" value="男">男</option>
                               <option value="女">女</option>
                               <option value="不限">不限</option>                              
                           </select>
                       </td>
                       <td style="height: 25px" align="center">
                           工作经验：</td>
                       <td style="height: 25px; width: 250px;"><input id="jobTimes" name="jobTimes" style="width:90%" type="text" runat="server" /></td>
                   </tr>
                   <tr>
                       <td style="width: 131px">
                           学历要求：</td>
                       <td>
                           <select id="jobStu" name="jobStu" style="width: 155px" runat="server">
                           <option value="学历不限" selected="selected">学历不限</option>
                               <option  value="高中">高中</option>
                               <option  value="大专">大专</option>
                               <option  value="本科">本科</option>
                               <option  value="本科以上">本科以上</option>
                           </select>
                       </td>
                       <td align="center" colspan="2">
                           </td>
                   </tr>
                   <tr class="thead">
                       <td style="width: 131px">
                           工作地区：</td>
                       <td class="zhaopinlittle" colspan="3"><input id="jobRegion" name="jobRegion" style="width:90%" type="text" runat="server" value="武汉市东湖高新技术开发区国际企业中心" /></td>
                   </tr>
                   <tr >
                       <td style="width: 131px">
                           要求与待遇：</td>
                       <td colspan="3" style="padding-left: 10px; padding-bottom: 10px; text-align: left">
                           &nbsp;<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Height="300px" ToolbarSet="Zrnet"
                               Width="650px">
                           </FCKeditorV2:FCKeditor>
                       </td>
                   </tr>
               </table>
               <table align="left" bgcolor="#a6a79d" border="0" cellpadding="0" cellspacing="0"
                   style="width: 100%">
                   <tr class="thead">
                       <td  colspan="4">
                           职位应聘联系方式：</td>
                   </tr>
                   <tr >
                       <td style="width: 124px; height: 31px">
                           联系人姓名：</td>
                       <td style="width: 174px; height: 31px"><input id="jobPeople" name="jobPeople" style="width:90%" type="text" runat="server" value="许成成" /></td>
                       <td style="width: 232px; height: 31px" align="center">
                           联系电话：</td>
                       <td style="height: 31px"><input id="jobTel" style="width:90%" name="jobTel" type="text" runat="server" value="(027)87493940,87377680" /></td>
                   </tr>
                   <tr class="thead">
                       <td style="width: 124px; height: 20px;">
                           单位传真：</td>
                       <td style="width: 174px; height: 20px;"><input id="jobFax" name="jobFax" style="width:90%" type="text" runat="server" value="027-67845319" /></td>
                       <td style="width: 232px; height: 20px;" align="center">
                           电子邮箱：</td>
                       <td style="height: 20px"><input id="jobEmail" style="width:90%" name="jobEmail" type="text" runat="server" value="job@testyle.cn" /></td>
                   </tr>
                   <tr>
                       <td style="width: 124px">
                           通信地址：</td>
                       <td class="zhaopinlittle" colspan="3"><input id="jobAddress" name="jobAddress" style="width:90%" type="text" runat="server" value="武汉市东湖高新技术开发区关山二路特1号国际企业中心 " /></td>
                   </tr>
               </table>
           </td>
       </tr>
        <tr　class="thead">          
      <td style="width: 136px"></td>
      <td class="forumRow" style="height: 27px; width: 1036px;" colspan="3" ><input type="button" class="btn" value="确认保存" name="Submit" id="tijiao"  />&nbsp;<input type="reset" class="btn" value="清 除"  onclick="resetCon('FCKeditor1')">&nbsp;<input type=button class="btn" value="返　回" onClick="javascript:location.href='adminRecruitment.aspx';"/>
          <input id="jobId_hid" name="jobId_hid" runat="server" type="hidden" /></td>
        </tr>
    </table>  
 </div>
<uc1:adminfoot ID="Adminfoot1" runat="server" />   
    </form>
</body>
<script type="text/javascript">
function resetCon(source) {
    //document.addform.reset();
    var oEditor=FCKeditorAPI.GetInstance(source).EditorDocument.body.innerHTML="";
    return false;
}
</script>
<script type="text/javascript">
$(document).ready(function(){
    var options = { 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse,  // post-submit callback 
        // other available options: 
         url:       "addRecruitment.aspx?action=insert",         // override for form's 'action' attribute 
       // type:        'post'        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        clearForm: false,        // clear all form fields after successful submit 
        resetForm: false        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
    $('#tijiao').click(function(){
         $("#loading").show();
        var oEditor = FCKeditorAPI.GetInstance("FCKeditor1") ;   
        oEditor.UpdateLinkedField(); 
        $('#addformAjax').ajaxSubmit(options); 
        return false;
       
    });
})
function showResponse(msg)
{ 
if(msg=="1")
{
    alert("添加成功!!!");    
    location.href=location.href;
}else if(msg=="2")
{
    alert("修改成功!!!");   
    location.href=location.href;
} 

else
{
    alert(msg);
    $("#loading").hide();
}
}

function showRequest(formData, jqForm, options)
 { 		
    return true; 
} 

</script>
</html>
